﻿<!--
  
   StipulationEditor.xaml
  
   Copyright (c) 2007 Mike Strobel
  
   This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
   For details, see <http://www.opensource.org/licenses/ms-rl.html>.
  
   All other rights reserved.
  
  -->
<UserControl x:Class="Supremacy.Client.StipulationEditor"
             xmlns="http://schemas.microsoft.com/netfx/2007/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:s="http://schemas.startreksupremacy.com/xaml/core"
             xmlns:al="clr-namespace:Avalon.Windows.Controls;assembly=AvalonLibrary"
             xmlns:local="clr-namespace:Supremacy.Client"
             MinWidth="320">
  <DockPanel LastChildFill="True">
    <StackPanel DockPanel.Dock="Bottom"
                Orientation="Horizontal"
                HorizontalAlignment="Center"
                Margin="0,14,0,0">
      <Button x:Name="AcceptButton"
              Click="AcceptButton_Click"
              Margin="0,0,0,0"
              IsDefault="True"
              Style="{StaticResource LCARS_StandardButtonStyle}">
        <AccessText Text="{s:StringResource Key=MESSAGE_DIALOG_OK, Case=Upper}" />
      </Button>
      <Button x:Name="CancelButton"
              Margin="7,0,0,0"
              IsCancel="True"
              Style="{StaticResource LCARS_StandardButtonStyle}">
        <AccessText Text="{s:StringResource Key=MESSAGE_DIALOG_CANCEL, Case=Upper}" />
      </Button>
    </StackPanel>
    <local:DurationEditor x:Name="DurationEditor"
                          DockPanel.Dock="Bottom"
                          HorizontalAlignment="Center"
                          Margin="0,14,0,0"
                          MinDuration="{Binding Path=MinDuration, Mode=OneWay}"
                          Duration="{Binding Path=Duration, Mode=TwoWay}" />
    <ListBox x:Name="ParameterList"
             Height="120"
             Margin="0,0,0,0"
             ScrollViewer.VerticalScrollBarVisibility="Auto"
             ScrollViewer.HorizontalScrollBarVisibility="Disabled"
             SelectedItem="{Binding Path=Parameter, Mode=TwoWay}" />
  </DockPanel>
</UserControl>
